package com.fzshang.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 入驻订单表
 * </p>
 *
 * @author 冯政尚
 * @since 2020-02-24
 */
@ToString
@ApiModel(value="UserOrder对象", description="入驻订单表")
public class UserOrder extends Model<UserOrder> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "订单号")
    @TableField("odd_numbers")
    private String oddNumbers;

    @ApiModelProperty(value = "金额")
    @TableField("money")
    private String money;

    @ApiModelProperty(value = "状态 1未支付 2已支付")
    @TableField("state")
    private Integer state;

    @TableField("create_time")
    private Long createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getOddNumbers() {
        return oddNumbers;
    }

    public void setOddNumbers(String oddNumbers) {
        this.oddNumbers = oddNumbers;
    }
    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserOrder{" +
            "id=" + id +
            ", userId=" + userId +
            ", oddNumbers=" + oddNumbers +
            ", money=" + money +
            ", state=" + state +
            ", createTime=" + createTime +
        "}";
    }
}
